package com.example.smartgreenhouse.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("warn")  // 关联数据库表 'warn'
public class Warn {
    @TableId(type = IdType.AUTO)  // 设置自增策略// 指定自增策略
    private Long id;
    
    private String type;
    @TableField("_value")
    private int value;

    private String message;

    private LocalDateTime collectionTime;

}

